From: emellor@ewan Date: Tue, 13 Sep 2005 14:46:20 +0000 (+0100) Subject: Fix the check that the argument count is even, for xenstore_write. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16812^2~1^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4482ab5c8761b09ff70a825baade2539d2987fb0;p=xen.git Fix the check that the argument count is even, for xenstore_write. --- diff --git a/tools/xenstore/xenstore_client.c b/tools/xenstore/xenstore_client.c index 842aca33fe..28be87859b 100644 --- a/tools/xenstore/xenstore_client.c +++ b/tools/xenstore/xenstore_client.c @@ -77,7 +77,7 @@ main(int argc, char **argv) /* NOTREACHED */ } #if defined(CLIENT_write) - if ((argc - optind) % 1) { + if ((argc - optind) % 2 == 1) { usage(argv[0]); /* NOTREACHED */ }